<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>菜单</title>
    <link rel="stylesheet" type="text/css" href="../../themes/bootstrap/cetc54.ui.all.css">

</head>
<body>
<input type="button" class="button" id="btn2" value="ajax远程取数据">
<div id="menu_ajax"></div>
</body>
<script type="text/javascript" src="../../lib/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="../../release/cetc54.ui.all.js"></script>
<script>
    $(function () {
        $('#menu_ajax').uiMenu({
            minWidth: 100,
            maxWidth: 150,
            dataSource: 'menu.json'
        });
        $('#btn2').click(function () {
            $('#menu_ajax').uiMenu('show', this);
        });
    });
</script>
</html>